<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: LV
  Date: 2016/7/22
  Time: 11:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%--<meta charset="UTF-8">--%>
    <%--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">--%>
    <%--<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />--%>
    <%--<!-- 全屏 -->--%>
    <%--<meta name="apple-mobile-web-app-capable" content="yes" />--%>
    <%--<!-- 上方栏显示 -->--%>
    <%--<meta name="apple-mobile-web-app-status-bar-style" content="black" />--%>
    <%--<!-- 不自动识别号码 -->--%>
    <%--<meta name="format-detection" content="telephone=no">--%>
    <%--<link href="public_skin/css/reset.css" rel="stylesheet">--%>
    <%--<link href="public_skin/css/shop_style.css" rel="stylesheet">--%>
    <%--<script src="../public_skin/js/jquery-1.11.1.min.js" type="text/javascript"></script>--%>
    <%--<script src="public_skin/js/shop.common.js" type="text/javascript"></script>--%>
    <title>售后服务</title>
</head>
<body>
<%--<header>--%>
    <%--<h1>售后服务</h1>--%>
    <%--<a href="javascript:;"></a>--%>
<%--</header>--%>
<article class="viewports">
    <div class="tab_menu">
        <div class="mt layout-box b-ffffff tac">
            <a class="box-col curr" href="${ctx}/userRefundOrder/getAllRefundOrderByShopId?sid=${shopId}">全部退款</a>
            <a class="box-col" href="${ctx}/userRefundOrder/getAllRefundOrderByStatus?sid=${shopId}&status=0">申请中</a>
            <a class="box-col" href="${ctx}/userRefundOrder/getAllRefundOrderByStatus?sid=${shopId}&status=1">待发货</a>
            <a class="box-col" href="${ctx}/userRefundOrder/getAllRefundOrderByStatus?sid=${shopId}&status=3">已完成</a>
        </div>
        <ul class="mc list_item c3">
            <c:forEach items="${orderRefundModelList}" var="refund">
            <li class="odr_t odr_b mb10">
                <div class="plr20">
                    订单号：${refund.oOrderRefund.orderRefundNum}(原单号:${refund.oOrderRefund.orderNum})<span class="r">${refund.oOrderRefund.sellerShopName}</span>
                </div>

                <c:forEach items="${refund.orderProductsEntityList}" var="product">
                <div class="layout-box p20 odr_b">
                    <div class="ith_img usernane_img140 mr20">
                        <span class="bg_span" style="background-image:url(${product.image});"></span>
                    </div>
                    <div class="box-col">
                        <h2 class="fs28 hgt2">${product.title} ${product.attribute}</h2>
                        <div class="fs24 mt20 lh1">
                            <span class="c-cb1448">&yen;${product.price}</span>
                            <span class="r ">
                                &times;${product.quantity}
                                </span>
                        </div>
                    </div>
                </div>
                </c:forEach>

                <div class="plr20 tar odr_b">退款金额：&yen;${refund.oOrderRefund.paymentMoneyAmount}</div>
                <div class="plr20">
                    <c:if test="${refund.oOrderRefund.orderStatus==0}">
                        <span class="c6">卖家审核中</span>
                        <span class="r">
                            <a class="odr2 r5 ptb5_lr15" href="${ctx}/userRefundOrder/cancelRefundOrder?orId=${refund.oOrderRefund.orderRefundId}">取消退款</a>
                        </span>
                    </c:if>
                    <c:if test="${refund.oOrderRefund.orderStatus==1}">
                        <span class="c6">等待买家发货</span>
                        <span class="r">
                            <a class="odr2 r5 ptb5_lr15" href="${ctx}/userRefundOrder/refundGoodsByUser?orId=${refund.oOrderRefund.orderRefundId}&sid=${shopId}">去发货</a>
                        </span>
                    </c:if>
                    <c:if test="${refund.oOrderRefund.orderStatus==3}">
                        <span class="c-cb1448">已成功</span>
                    </c:if>
                    <c:if test="${refund.oOrderRefund.orderStatus==2}">
                        <span class="c-cb1448">等待卖家收货退款</span>
                    </c:if>
                    <c:if test="${refund.oOrderRefund.orderStatus==-1}">
                        <span class="c-cb1448">已取消</span>
                    </c:if>

                </div>
            </li>
            </c:forEach>
        </ul>
    </div>
</article>
</body>
</html>
